package avicit.rme.back.workflow.precessing;

// 全局和人工节点的各个动作的预处理、后处理事件

/**
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.PostMapping;
import avicit.platform6.core.rest.msg.ResponseMsg;

@RestController
@RequestMapping("/api/demo/bpm/TestRestPrecessing")
public class TestRestPrecessing implements CommonRestPrecessingInterface {

    private final static Logger logger = LoggerFactory.getLogger(TestRestPrecessing.class);

    @Override
    @PostMapping("/execute/v1")
    public ResponseMsg<Void> execute(@RequestBody() Map<String, String> args) throws Exception {
        ResponseMsg<Void> responseMsg = new ResponseMsg();

        // 默认流程变量开始
        // 流程实例ID
        String processInstanceId = arg.get("processInstanceId");
        // 流程执行ID
        String executionId = arg.get("executionId");
        // 业务表单ID
        String formId = arg.get("formId");
        // 流程定义ID
        String processDefId = arg.get("processDefId");
        // 流程节点标识
        String activityName = arg.get("activityName");
        // 流程操作标识
        String magicType = arg.get("magicType");
        // 默认流程变量结束
        // todo 业务操作
        return responseMsg;
    }
}
*/